package com.idudiao.sc.neo4j.repository;

import com.idudiao.sc.neo4j.model.node.Customer;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

/**
 * @author songyinyin
 * @since 2019/1/7 15:46
 */
@Repository
public interface CustomerRepository extends Neo4jRepository<Customer,Long> {
    /**
     * 查出所有
     * @param name 名字
     * @return
     */
    Customer findByName(String name);
}